extern uint32_t gdwDllLockCount;